#include<stdio.h>
#include<unistd.h>
#include<sys/bitypes.h>
int main()
{
  printf("process runing only me!\n");
  sleep(1);
  pid_t id =fork();
  if(id==0)
  {
    while(1)
    {
    printf("id: %d this is a child process,pid:%d,ppid:%d\n",id,getpid(),getppid());
    sleep(1);
    } 
  }
  else if(id==-1)
  {
    printf("make child process fail!\n");
  }
  else 
  {
    while(1)
    {
    printf("id: %d this is a parent process,pid:%d,ppid:%d\n",id,getpid(),getppid());
  sleep(1);
    }
  }
  return 0;
}
